import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import '@/assets/main.scss'
import persist from 'pinia-plugin-persistedstate'
import axios from 'axios'
import ElementPlus from "element-plus";
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)

axios.defaults.baseURL = 'http://localhost:8080/'


app.use(createPinia().use(persist))
app.use(router)

app.use(ElementPlus, {
    locale: zhCn,
})

app.mount('#app')
